package com.zy.teacherSide.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.teacherSide.dao.StudentTaskAchievementDao;
import com.zy.teacherSide.entity.StudentTaskAchievement;
import com.zy.teacherSide.service.IStudentTaskAchievementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 29787
 */
@Service
public class IStudentTaskAchievementServiceImpl extends ServiceImpl<StudentTaskAchievementDao, StudentTaskAchievement> implements IStudentTaskAchievementService {

    @Autowired
    private StudentTaskAchievementDao studentTaskAchievementDao;

    @Override
    public StudentTaskAchievement getStudentTaskAchievements(Integer courseId, Integer taskId, Integer teacherId, Integer classroomId, Integer studentId) {
        return studentTaskAchievementDao.getStudentTaskAchievements(courseId, taskId, teacherId, classroomId,studentId);
    }

    @Override
    public List<StudentTaskAchievement> getStudentTaskAchievement(Integer courseId, Integer taskId, Integer teacherId, Integer classroomId, Integer studentId) {
        return studentTaskAchievementDao.getStudentTaskAchievement(courseId, taskId, teacherId, classroomId,studentId);
    }

    @Override
    public List<StudentTaskAchievement> getStudentTaskAchievementByCourseIdAndTaskIdAndClassroomIdAndTeacherId(Integer courseId, Integer taskId, Integer teacherId, Integer classroomId) {
        return studentTaskAchievementDao.getStudentTaskAchievementByCourseIdAndTaskIdAndClassroomIdAndTeacherId(courseId, taskId, teacherId, classroomId);
    }
}
